package com.letfox.ad.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.letfox.ad.dao.ADChargeUnitDao;
import com.letfox.ad.model.ADChargeUnit;
import com.letfox.ad.service.ADChargeUnitService;

@Service
public class ADChargeUnitServiceImpl implements ADChargeUnitService {

	@Autowired
	private ADChargeUnitDao adChargeUnitDao;

	@Override
	public int deleteByPrimaryKey(String adUnitId) {
		return adChargeUnitDao.deleteByPrimaryKey(adUnitId);
	}

	@Override
	public int insert(ADChargeUnit record) {
		return adChargeUnitDao.insert(record);
	}

	@Override
	public ADChargeUnit selectByPrimaryKey(String adUnitId) {
		return adChargeUnitDao.selectByPrimaryKey(adUnitId);
	}

	@Override
	public int updateByPrimaryKey(ADChargeUnit record) {
		return adChargeUnitDao.updateByPrimaryKey(record);
	}

}
